﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace NJL.Web.Shop
{
    public partial class TempPaymentReturn : BasePageVisitor
    {
        protected string amount = "";
        NJL.BLL.NJL_TEMP_ORDER blltempOrder = new NJL.BLL.NJL_TEMP_ORDER();
        protected NJL.Model.NJL_TEMP_ORDER modeltempOrder;
        NJL.BLL.NJL_SYS_CONTACT bllContact = new BLL.NJL_SYS_CONTACT();
        protected string Tel = "";
        protected string ContactQQ = "";
        protected string Contact = "";
        protected string Mobel = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(Request["orderId"]))
            {
                DataSet dsContactQQ = bllContact.GetList("NJL_SYS_BASE_ID='" + WEBSITE_CODE + "' and TYPE_CODE='PWKF'");
                if (dsContactQQ.Tables[0].Rows.Count > 0)
                {
                    ContactQQ = dsContactQQ.Tables[0].Rows[0]["WEBSITE_CONTACT_QQ"].ToString();
                    Tel = dsContactQQ.Tables[0].Rows[0]["WEBSITE_CONTACT_TEL"].ToString();
                    Contact = dsContactQQ.Tables[0].Rows[0]["WEBSITE_CONTACT"].ToString();
                    Mobel = dsContactQQ.Tables[0].Rows[0]["WEBSITE_CONTACT_MOBILE"].ToString();
                }

                modeltempOrder = blltempOrder.GetModel(Request["orderId"]);
                amount = string.Format("{0:0.00}", modeltempOrder.ORDER_TOTAL);
            }
        }
    }
}